//
//  IGArtWorkModel.m
//  jingdongfang
//
//  Created by LJL on 2017/9/21.
//  Copyright © 2017年 BOE. All rights reserved.
//


#import "IGArtWorkModel.h"

@implementation IGArtWorkModel

+ (JSONKeyMapper *)keyMapper
{
    return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:
                                                                @{@"aId":@"id"}
                                                                ];
}

- (IGShareModel *)getShareModel {
    IGShareModel *shareModel = [IGShareModel new];
    shareModel.title = self.title;
    shareModel.descr = self.title.length>40?[self.title substringToIndex:39]:self.title;
//    shareModel.webpageUrl = self.content;
    shareModel.thumbURL = self.image?self.image:nil;
    
    return shareModel;
}

@end
